<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>后台管理</title>
	</head>
	<body id="behind">
		<div class="header_b">
			<jsp:include page="../common/header.jsp"></jsp:include>
		</div>
		<div class="content_b">
			<h2>
				订单信息
			</h2>
			订单号码：${orderInfo.id } 下单日期：${orderInfo.orderDate }
			<table border="0" cellpadding="0" cellspacing="0" class="table-data">
				<tr>
					<th>
						序号
					</td>
					<th>
						商品名称
					</th>
					<th>
						数量
					</th>
					<th>
						会员价
					</th>
					<th>
						小计
					</th>
				</tr>
				<c:forEach items="${orderInfo.buyInfos}" var="item"
					varStatus="status">
					<tr>
						<td>
							${status.count }
						</td>
						<td>
							${item.goodsInfo.goodsName }
						</td>
						<td>
							${item.num}
						</td>
						<td>
							${item.goodsInfo.memberPrice }
						</td>
						<td>
							${item.sumPrice }
						</td>
					</tr>
				</c:forEach>
			</table>
			<div>
				定单状态： ${orderInfo.isConfirm==true?"已确认":"未确认"
				}|${orderInfo.isPayment==true?"已付款":"未付款"
				}|${orderInfo.isConsignment==true?"已发货":"未发货" }
			</div>
			<div>
				配送方式：快递
			</div>
			<div>
				支付方式：网银支付
			</div>
			<div>
				商品总金额：${orderInfo.goodsFee}
			</div>
			<div>
				商品运费：${orderInfo.shipFee}
			</div>
			<div>
				订单总金额：${orderInfo.totalPrice}
			</div>
			<div>
				购货人信息
				<div>
					购货人姓名：${orderInfo.member.trueName}
				</div>
				<div>
					移动电话：${orderInfo.member.mobile}
				</div>
				<div>
					座机：${orderInfo.member.phone}
				</div>
				<div>
					Email：${orderInfo.member.emails}
				</div>
				<div>
					购货人地址：${orderInfo.member.address}
				</div>
				<div>
					邮政编码：${orderInfo.member.postCode}
				</div>
			</div>
			<div>
				收货人信息
				<div>
					收货人姓名：${orderInfo.address.name}
				</div>
				<div>
					移动电话：${orderInfo.address.mobilephone}
				</div>
				<div>
					座机：${orderInfo.address.telephone}
				</div>
				<div>
					购货人地址：${orderInfo.address.address}
				</div>
				<div>
					邮政编码：${orderInfo.address.postCode}
				</div>
			</div>
			<div>
				<a href="${ctx }/admin/order/order!sendGoods?id=${orderInfo.id}"
					style="color: red;"> 确认发货</a>
			</div>
			<div></div>
		</div>
	</body>
</html>
